﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using BUS;
using DAO;
namespace QLTTTH
{
    public partial class frmLuuVet : DevExpress.XtraEditors.XtraForm
    {
        public frmLuuVet()
        {
            InitializeComponent();
        }
        BUS_LopHoc LOPHOC = new BUS_LopHoc();
        private void frmLuuVet_Load(object sender, EventArgs e)
        {
            gv_Luuvet.DataSource = LOPHOC.LayThongTinThayDoi();
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void gv_Luuvet_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            int dong = e.RowIndex;
            txt_maloailop.Text = gv_Luuvet.Rows[dong].Cells["MALOAILOP"].Value.ToString();
            txt_ngaythaydoi.Text = gv_Luuvet.Rows[dong].Cells["NGAYTHAYDOI"].Value.ToString();
            txt_hocphicu.Text = gv_Luuvet.Rows[dong].Cells["HOCPHICU"].Value.ToString();
            txt_hocphimoi.Text = gv_Luuvet.Rows[dong].Cells["HOCPHIMOI"].Value.ToString();
            txt_sotietcu.Text = gv_Luuvet.Rows[dong].Cells["SOTIETCU"].Value.ToString();
            txt_sotietmoi.Text = gv_Luuvet.Rows[dong].Cells["SOTIETMOI"].Value.ToString();
            txt_phigdcu.Text = gv_Luuvet.Rows[dong].Cells["PHIGDCU"].Value.ToString();
            txt_phigdmoi.Text = gv_Luuvet.Rows[dong].Cells["PHIGDMOI"].Value.ToString();
        }
    }
}